package tech.yiyehu.modules.bss.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import tech.yiyehu.common.utils.PageUtils;
import tech.yiyehu.common.utils.Query;

import tech.yiyehu.modules.bss.dao.FoodDao;
import tech.yiyehu.modules.bss.entity.FoodEntity;
import tech.yiyehu.modules.bss.service.FoodService;


@Service("foodService")
public class FoodServiceImpl extends ServiceImpl<FoodDao, FoodEntity> implements FoodService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<FoodEntity> page = this.selectPage(
                new Query<FoodEntity>(params).getPage(),
                new EntityWrapper<FoodEntity>()
        );

        return new PageUtils(page);
    }

}
